//
//  RowItem.m
//  halfSweat
//
//  Created by 甘伟杰 on 16/5/14.
//  Copyright © 2016年 ganweijie. All rights reserved.
//

#import "RowItem.h"

@implementation RowItem

+ (__kindof RowItem *) rowItemWihtImage:(UIImage *)iconImage cellTitle:(NSString *)cellTitle
{
    RowItem *item = [[self alloc] init];
    item.iconImage = iconImage;
    item.cellTitle = cellTitle;
    
    return item;
}

+ (__kindof RowItem *) rowItemWihtLeftImage:(UIImage *)leftImage  leftTitle:(NSString *)leftTitle rightImage:(UIImage *)rightImage rightTitle:(NSString *)rightTitle;
{
    RowItem *item = [[self alloc] init];
    item.leftImage = leftImage;
    item.leftTitle = leftTitle;
    item.rightImage = rightImage;
    item.rightTitle = rightTitle;
    
    return item;
}

+(RowItem *)rowItemWihtLeftImageURL:(NSURL *)leftImageURL leftTitle:(NSString *)leftTitle rightImageURL:(NSURL *)rightImageURL rightTitle:(NSString *)rightTitle
{
    RowItem *item = [[self alloc] init];
    item.leftImageURL = leftImageURL;
    item.leftTitle = leftTitle;
    item.rightImageURL = rightImageURL;
    item.rightTitle = rightTitle;
    
    return item;
}

@end
